package com.khshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.khshop.pojo.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.khshop.vo.ServiceResult;

import java.util.Map;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author zhaoyang
 * @since 2020-10-16
 */
public interface RoleService extends IService<Role> {
    //新增按钮权限
    public ServiceResult<Role> addRole(Role role);

    //修改按钮权限
    public ServiceResult<Role> updateRole(Role role);

    //删除按钮权限
    public ServiceResult<Role> delRole(Integer id);

    //查询按钮权限
    public ServiceResult<IPage<Role>> searchRole(Map<String,String> map, Integer page, Integer limit);


}
